﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebLogs.aspx.cs" Inherits="Manager_SysLogs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>系统日志信息</title>
    <style type="text/css">
        .x-grid3-row-body .expander
        {
            padding-left: 25px;
            padding-top: 5px;
            padding-bottom: 5px;
        }
        .x-grid3-row-body .expander p
        {
            padding-left: 25px;
            padding-top: 5px;
            padding-bottom: 5px;
        }
        .x-grid3-row-body .expander strong
        {
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManage1" runat="server" AjaxLoadingType="mask" AutoSizePanelID="gridList" />
    <ext:Grid ID="gridList" runat="server" AutoScroll="true" EmptyText="暂时没有相关数据!" RowNumberWidth="40px"
        ShowBorder="true" DataKeyNames="aId" ShowHeader="false"
        BodyPadding="0" EnableRowNumberPaging="true" ForceFitAllTime="true" AllowPaging="true"
        PageSize="25" IsDatabasePaging="true" OnPageIndexChange="gridList_PageIndexChange">
        <Columns>
            <ext:TemplateField ID="tfExpander" runat="server" RenderAsRowExpander="true">
                <ItemTemplate>
                    <div class="expander">
                        <p>
                            <strong>操作事件：</strong><%# Eval("aNote")%></p>
                    </div>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:TemplateField ID="TemplateField1" runat="server" HeaderText="操作IP地址">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# WebBase.GetClientIP.getNum2IPAddress(Convert.ToInt64(Eval("aIpaddress")))  %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField ID="bfOS" runat="server" HeaderText="操作系统" DataField="aOS" />
            <ext:BoundField ID="bfBrowse" runat="server" HeaderText="浏览器" DataField="aBrowse"
                Width="160" />
            <ext:BoundField ID="bfAddTime" runat="server" HeaderText="访问时间" DataField="aDateTime"
                Width="120" />
        </Columns>
        <Toolbars>
            <ext:Toolbar Position="top" runat="server">
                <Items>
                    <ext:Label ID="Label2" Text="系统日志信息表" runat="server">
                    </ext:Label>
                    <ext:ToolbarFill ID="ToolbarFill" runat="server">
                    </ext:ToolbarFill>
                    <ext:Label ID="Label3" Text="时间范围:" runat="server">
                    </ext:Label>
                    <ext:DatePicker ID="dpStart" runat="server" Label="起始日期">
                    </ext:DatePicker>
                    <ext:DatePicker ID="dpEnd" runat="server" Label="截止日期">
                    </ext:DatePicker>
                    <ext:TextBox ID="txtKeyword" runat="server" Label="关键词" EmptyText="输入查询关键词">
                    </ext:TextBox>
                    <ext:Button ID="btnSearch" runat="server" Icon="systemsearch" Text="日志检索" OnClick="btnSearch_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <PageItems>
            <ext:Button ID="btnRefresh" runat="server" Icon="arrowrefresh" OnClick="btnRefresh_Click">
            </ext:Button>
            <ext:ToolbarFill ID="ToolbarFill3" runat="server">
            </ext:ToolbarFill>
            <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
            </ext:ToolbarSeparator>
            <ext:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
            </ext:ToolbarText>
            <ext:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
                OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                <ext:ListItem Text="15" Value="15" />
                <ext:ListItem Text="20" Value="20" />
                <ext:ListItem Text="25" Value="25" Selected="true" />
            </ext:DropDownList>
        </PageItems>
    </ext:Grid>
    </form>
</body>
</html>
